{include file=member.header.html}
<script type="text/javascript">
$(function(){
    $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd',changeMonth: true, changeYear: true});
    $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd',changeMonth: true, changeYear: true});
	$('.checkitem').attr('checked', false);//用于删除时返回复选框全部取消
});
</script>
<style type="text/css">
</style>
<div class="content_color">
<div class="content">
{include file=member.menu.html}
<div id="right">
{include file=member.submenu.html}
<div class="wrap">
  <div class="searchTop">
  <form method="get">
    <input type="hidden" name="app" value="my_kdorder" />
    状态：<select name="status" class="select_class" style="height:28px; padding:3px;">
	<option value="-1">=请选择=</option>
	<option value="0" {if $smarty.get.status eq '0'}selected="selected"{/if}>未入库</option>
    <option value="1" {if $smarty.get.status eq '1'}selected="selected"{/if}>部分入库</option>
	<option value="2" {if $smarty.get.status eq '2'}selected="selected"{/if}>已入库</option>
    <option value="3" {if $smarty.get.status eq '3'}selected="selected"{/if}>待付款</option>
    <option value="5" {if $smarty.get.status eq '5'}selected="selected"{/if}>已付款</option> 
    <option value="6" {if $smarty.get.status eq '6'}selected="selected"{/if}>待发货</option>
    <option value="7" {if $smarty.get.status eq '7'}selected="selected"{/if}>已发货</option>  
    <option value="8" {if $smarty.get.status eq '8'}selected="selected"{/if}>已完成</option>
    <option value="9" {if $smarty.get.status eq '9'}selected="selected"{/if}>已取消</option>  
	</select>&nbsp;&nbsp;
    关键词：<input class="queryInput" type="text" name="key" value="{$smarty.get.key|escape}" placeholder="收货人姓名、收货人手机、运单号、转运单号" style="width:280px"/>&nbsp;&nbsp;
    添加时间：<input type="text" value="{$smarty.get.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" /> 至
    <input type="text" value="{$smarty.get.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />
    <input type="submit" class="formbtn" value="查询" />
  </form>
  </div>
  
  <form action="" method="post" id="form_post" target="_blank">
  <div class="public_select table">
  <table width="100%" cellspacing="0">
      <tr class="gray">
        <th width="20" class="firstCell"><input type="checkbox" class="checkall" /></th>
          <th>编号</th>
          <th>快递运单号</th>
          <th>运单状态</th>
          <th>收件人</th>
          <th>收件人手机</th>
          <th>物品数量</th>
          <th>物品价值</th>
          <th>包裹发出仓库</th>
          <th>添加时间</th>
          <th width="60">操作</th>
      </tr>
      <!--{foreach from=$orders item=order name=_goods_f}-->
      <tr class="line">
        <td class="firstCell"><input type="checkbox" class="checkitem" value="{$order.order_id}"/></td>
          <td class="left_style"><a href="index.php?app=my_kdorder&act=view&order_id={$order.order_id}" class="links">{$order.order_id|escape}</a></td>
          <td><a href="{$site_url}/{url app=kd_order&ydh=$order.yundanhao}" target="_blank" >{$order.yundanhao}</a></td>
          <td><!--{if $order.status eq '0'}--><font color="#f00">未入库</font>
            <!--{elseif $order.status eq '1'}--><font color="#FF9900">部分入库</font>
            <!--{elseif $order.status eq '2'}--><font color="#009966">已入库</font>
            <!--{elseif $order.status eq '3'}--><font color="#00f">待付款</font>
            <!--{elseif $order.status eq '5'}--><font color="#3399CC">已付款</font>
            <!--{elseif $order.status eq '6'}--><font color="#FF00FF">待发货</font>
            <!--{elseif $order.status eq '7'}--><font color="#336600">已发货</font>
            <!--{elseif $order.status eq '8'}-->已完成
            <!--{elseif $order.status eq '9'}--><font color="#999">已取消</font>
            <!--{/if}--></td>
          <td>{$order.txtRece_name}</td>
          <td>{$order.txtRece_mobilephone}</td>
          <td><strong style="color:#F00">{$order.SumGoodsAmount}</strong> 件</td>
          <td><strong style="color:#F00">${$order.SumGoodsWorth}</strong></td>
          <td>{$order.CangKuDiZhi}</td>
          <td>{$order.addtime|date}</td>
          <td>
            <!--{if $order.status eq 3}--><a href="{url app=my_kdorder&act=payment&order_id=$order.order_id}" target="_blank" style="color:#f00">立即付款</a>
            <!--{elseif $order.status eq 0}-->
            <a href="index.php?app=my_kdorder&act=edit&order_id={$order.order_id}" class="links">修改</a>&nbsp;&nbsp;
            <a href="javascript:drop_confirm('确定要删除选择的记录吗？删除后不可恢复，请谨慎操作','index.php?app=my_kdorder&act=drop&id={$order.order_id}');" class="links">删除</a>
            <!--{else}--><a href="index.php?app=my_kdorder&act=view&order_id={$order.order_id}" class="links">查看</a>
            <!--{/if}-->
          </td>
    </tr>   
    <!--{foreachelse}-->
      <tr class="line">
        <td colspan="11" style="padding:8px; color:#F00; text-align:center; font-size:14px;">没有相关记录</td>
          </tr>     
    <!--{/foreach}-->
  </table>
  </div>
  </form>
  <table width="100%" cellspacing="5">
    <tr>
      <td height="35"><label><input type="checkbox" id="all2" class="checkall"/> 全选</label>
      <a href="javascript:void(0);" uri_target="index.php?app=kuozhan&act=KdOrderPrint" ectype="batchbutton" name="id" class="lcj_btn">打印面单</a>
      </td>
      <td>{include file=member.page.bottom.html}</td>
    </tr>      
  </table>  
</div></div>
<div class="clear"></div>
</div>
</div>
{include file=footer_member.html}